/**
 * 
 */
package com.sys.console.business;

import java.util.ArrayList;
import java.util.List;

import com.sys.console.pojo.MeunAuthorityTreeJsonDto;
import com.sys.console.pojo.SysModuleDto;
import com.sys.console.pojo.SysModuleMeunDto;
import com.sys.console.pojo.SysRoleModuleDto;
import com.sys.console.pojo.Sys_Module;


/**
 * 2014-11-05
 * 
 * @author 陈成军 模块管理
 */
public interface SysModuleService {

	public abstract int deleteByPrimaryKey(Integer moduleid) throws Exception;

	public abstract int insert(Sys_Module record) throws Exception;
	
	public abstract int saveOrUpdate(Sys_Module record) throws Exception;

	public abstract Sys_Module selectByPrimaryKey(Integer moduleid)	throws Exception;

	public abstract int updateByPrimaryKey(Sys_Module record) throws Exception;
	
	public abstract ArrayList<SysModuleMeunDto> selectUserModuleByList(Sys_Module record) throws Exception;
	
	public abstract List<SysRoleModuleDto> selectRoleMeunAuthListByPid(Sys_Module record) throws Exception;
	
	public abstract ArrayList<Sys_Module>selectByPid(Sys_Module record) throws Exception;
	
	public abstract List<SysModuleDto>selectByTree(Sys_Module record) throws Exception;
	
	public abstract List<MeunAuthorityTreeJsonDto> selectMeunAuthTree(Sys_Module entity) throws Exception;

}
